package com.zide.link.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zide.framework.config.mybatisplus.XianYingMapperPlus;
import com.zide.link.domain.po.LinkSearch;
import com.zide.link.domain.vo.search.LinkSearchSearchVO;
import org.apache.ibatis.annotations.Mapper;
import com.zide.common.core.domain.PageResult;

/**
 * 搜索引擎Mapper接口
 * 
 * @author zide
 * @date 2024-05-10
 */
@Mapper
public interface LinkSearchMapper extends XianYingMapperPlus<LinkSearch> {

    default PageResult<LinkSearch> selectPage(LinkSearchSearchVO searchVO) {
        return selectPage(searchVO, new LambdaQueryWrapper<LinkSearch>().orderByDesc(LinkSearch::getId));
    }
}
